package it.gma.torero.operator;

import it.gma.torero.operand.ComparationOperand;

public class GreaterOperator extends AbstractComparationOperator {

	public GreaterOperator(ComparationOperand operand1, ComparationOperand operand2) {
		super(operand1, operand2);
	}

	public boolean evaluate() {
		return operand1.compareTo(operand2) > 0;
	}

	@Override
	public String toString() {
		return operand1 + " > " + operand2;
	}
}
